@import '@/assets/styles/settings/variables.scss';

@mixin buttomCss {
  display: inline-block;
  height: 0.32rem;
  min-height: 28px;
  line-height: 0.22rem;
  width: auto;
  box-sizing: border-box;
  padding: 0.05rem 0.16rem;
  border-radius: $border-radius;
  margin: 0.06rem;
  font-size: 0.14rem;
  cursor: pointer;
  transition: all 0.5s;

  &:hover {
    // box-shadow: 3px 1px 3px rgba(0, 0, 0, 0.16);
  }
}

// 按钮 灰色
@mixin buttomGrey {
  @include buttomCss;
  background-color: $from-background;
}

// 按钮 蓝色主按钮
@mixin buttomBule {
  @include buttomCss;
  background-color: $color-active;
  color: #fff
}

// 按钮 蓝色主按钮 禁用
@mixin buttomBuleDisable {
  @include buttomCss;
  background-color: $disable-color;
  color: #fff;
  cursor: not-allowed;
}

//按钮 icon
@mixin iconBut {
  width: 0.44rem;
  height: 0.44rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: $from-background;
  border-radius: 0.06rem;
}

// 底部 按钮取消确定组合
@mixin footerBut {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.1rem 0;

  .cancel {
    @include buttomGrey;
  }

  .preservation {
    @include buttomBule;
  }

}